import request from '@/utils/request'

// 查询研究机构-年报记录列表
export function listAnnals(query) {
  return request({
    url: '/research/annals/list',
    method: 'get',
    params: query
  })
}

// 查询研究机构-年报记录详细
export function getAnnals(ID) {
  return request({
    url: '/research/annals/' + ID,
    method: 'get'
  })
}

// 新增研究机构-年报记录
export function addAnnals(data) {
  return request({
    url: '/research/annals',
    method: 'post',
    data: data
  })
}

// 修改研究机构-年报记录
export function updateAnnals(data) {
  return request({
    url: '/research/annals',
    method: 'put',
    data: data
  })
}

// 删除研究机构-年报记录
export function delAnnals(ID) {
  return request({
    url: '/research/annals/' + ID,
    method: 'delete'
  })
}
